<?php

class ApplicationException extends ErrorException {
    
    public function toCustomMessage($err_severity, $err_msg, $err_file, $err_line)
    {
          $msg = "<b>ERROR</b> [$err_severity] $err_msg<br />\n";
          $msg .=  "Fatal error on line $err_line in file $err_file";
          return $msg;
    }
}

